<%@page import="java.util.StringTokenizer"%>
<%@page import="com.liferay.portal.service.ListTypeServiceUtil"%>
<%@page import="java.util.List"%>
<%@page import="com.liferay.portal.model.ListType"%>
<%


//Fees to do now
// GR, Application fees Govt Land, Application Fees CofO, Appli Fees Re CofO
//


ListType mappedFee = (ListType) request.getAttribute("mappedFee");

System.out.println("doing ID >>>" + mappedFee.getListTypeId());

%>
<!-- We will be having different JSP pages for each of the peculiar fees types -->

<% 
if("Capital Gains Tax".equalsIgnoreCase(mappedFee.getName().trim())
	||"Capital Gains Tax for Surrender".equalsIgnoreCase(mappedFee.getName().trim())
) {%>
	<jsp:include page="/html/calculator/capital_gain_tax.jsp"/>
<%} 
else if ("Processing Fees for Consent for Merger".equalsIgnoreCase(mappedFee.getName().trim())
		||"Processing Fees for Deed of Purchase".equalsIgnoreCase(mappedFee.getName().trim())	
		||"Processing Fees for Merger".equalsIgnoreCase(mappedFee.getName().trim())	
		||"Processing Fees for Subdivision (Developed land)".equalsIgnoreCase(mappedFee.getName().trim())	
		||"Stamping and Registration of Deed of Purchase".equalsIgnoreCase(mappedFee.getName().trim())	
)
{%>
	<jsp:include page="/html/calculator/Consent_for_Merger.jsp"/>
<%} 
else if ("Processing Fees for Deed of Sale".equalsIgnoreCase(mappedFee.getName().trim())
		||"Stamping and Registration of Deed of Sale".equalsIgnoreCase(mappedFee.getName().trim())	
		)
{%>
	<jsp:include page="/html/calculator/5perDeedCalculation.jsp"/>
<%} 
else if ("Application Fees for C of O".equalsIgnoreCase(mappedFee.getName().trim()))
{%>
	<jsp:include page="/html/calculator/application_fees_for_c_of_o.jsp"/>
<%} 
else if ("Application Fees for C of O Recertification".equalsIgnoreCase(mappedFee.getName().trim()))
{%>
	<jsp:include page="/html/calculator/application_fees_for_re_c_of_o.jsp"/>
<%} 
else if ("Premium Charge".equalsIgnoreCase(mappedFee.getName().trim()))
{%>
	<jsp:include page="/html/calculator/premium_fees.jsp"/>
<%} 
else if ("Stamping and Registration of Lease".equalsIgnoreCase(mappedFee.getName().trim()))
{%>
	<jsp:include page="/html/calculator/3percentConsideration.jsp"/>
<%} 
else if ("Stamping and Registration of Sublease".equalsIgnoreCase(mappedFee.getName().trim()))
{%>
	<jsp:include page="/html/calculator/RegistrationofSublease.jsp"/>
<%} 
else if ("Stamping and Registration of Devolution Order".equalsIgnoreCase(mappedFee.getName().trim()))
{%>
	<jsp:include page="/html/calculator/devolutionOrder.jsp"/>
<%} 
else if ("Stamping and Registration of Mortgage".equalsIgnoreCase(mappedFee.getName().trim()))	
{%>
	<jsp:include page="/html/calculator/registrationofMortgage.jsp"/>
<%} 
else if ("Stamping and Registration of Supplementary Mortgage".equalsIgnoreCase(mappedFee.getName().trim())
)
{%>
	<jsp:include page="/html/calculator/SupplementaryMortgage.jsp"/>
<%} 
else if ("Processing Fees for Consent to Mortgage".equalsIgnoreCase(mappedFee.getName().trim())
		||"Processing Fees for Supplementary Mortgage".equalsIgnoreCase(mappedFee.getName())	
)
{%>
	<jsp:include page="/html/calculator/Mortgage_loan.jsp"/>
<%} 
else if ("Stamping and Registration of Deed of Gift".equalsIgnoreCase(mappedFee.getName().trim())
		||"Stamping and Registration of Deed of Grant".equalsIgnoreCase(mappedFee.getName().trim())	
		||"Stamping and Registration of Power of Attorney".equalsIgnoreCase(mappedFee.getName().trim())	
		)
{%>
	<jsp:include page="/html/calculator/doubleDeedofGift.jsp"/>
<%} 
else if ("Stamping and Registration of Assignment".equalsIgnoreCase(mappedFee.getName().trim()))
{%>
	<jsp:include page="/html/calculator/registration_Assignment.jsp"/>
<%} 
else if ("Survey Fees".equalsIgnoreCase(mappedFee.getName().trim()))
{%>
	<jsp:include page="/html/calculator/survey_fees.jsp"/>
<%} 
else if ("Development Levy".equalsIgnoreCase(mappedFee.getName().trim()))
{%>
	<jsp:include page="/html/calculator/development_levy.jsp"/>
<%} 
else if ("Penal Rent".equalsIgnoreCase(mappedFee.getName().trim()))
{%>
	<jsp:include page="/html/calculator/penalRent.jsp"/>
<%} 
else if ("Ground Rent".equalsIgnoreCase(mappedFee.getName().trim()))
{%>
	<jsp:include page="/html/calculator/ground_rent.jsp"/>
<%} 
else if ("C-of-O Processing Fees for Certification".equalsIgnoreCase(mappedFee.getName().trim())
	||"C-of-O Processing Fees for Regularization".equalsIgnoreCase(mappedFee.getName().trim())
)
{%>
	<jsp:include page="/html/calculator/c_of_o_processing_fees_certification.jsp"/>
<%} 
else if ("C-of-O Processing Fees for Recertification/Reissuance".equalsIgnoreCase(mappedFee.getName().trim()))
	{%>
		<jsp:include page="/html/calculator/c_of_o_processing_fees_re-certification.jsp"/>
	<%} 
else if ("C-of-O Processing Fees for Regularization".equalsIgnoreCase(mappedFee.getName().trim())	)
	{%>
		<jsp:include page="/html/calculator/c_of_o_processing_fees_regularize.jsp"/>
	<%}
else if ("Surveys_Pillar Retracing".equalsIgnoreCase(mappedFee.getName().trim())
		//||"C-of-O Processing Fees for Recertification/Reissuance".equalsIgnoreCase(mappedFee.getName())
		//||"C-of-O Processing Fees for Regularization".equalsIgnoreCase(mappedFee.getName())
	)
	{%>
		<jsp:include page="/html/calculator/pillarRetracing.jsp"/>
	<%} 
else if ("Processing Fees for Consent for Devolution Order".equalsIgnoreCase(mappedFee.getName().trim())
		||"Processing Fees for Consent of Deed of Gift".equalsIgnoreCase(mappedFee.getName())
		)
	{%>
		<jsp:include page="/html/calculator/amountEntry.jsp"/>
	<%} 
else if ("Surveys_Cost of Survey Plans".equalsIgnoreCase(mappedFee.getName().trim()))
{%>
	<jsp:include page="/html/calculator/Surveys_Cost.jsp"/>
<%} 
else if ("Surveys_Issuance of Pillar Numbers (SURCON)".equalsIgnoreCase(mappedFee.getName().trim()))
{%>
	<jsp:include page="/html/calculator/Surveys_Issuance.jsp"/>
<%}
else if ("Surveys_Printing of maps".equalsIgnoreCase(mappedFee.getName().trim()))
{%>
	<jsp:include page="/html/calculator/Surveys_Printing.jsp"/>
<%} 
else if ("Surveys_Re-establishment of Beacon/Pillar".equalsIgnoreCase(mappedFee.getName().trim()))
{%>
	<jsp:include page="/html/calculator/Surveys_Reestablishment.jsp"/>
<%} 
else if ("Surveys_Sale of Maps".equalsIgnoreCase(mappedFee.getName().trim()))
{%>
	<jsp:include page="/html/calculator/Surveys_Sale.jsp"/>
<%} 
else if ("Surveys_Perimeter Survey and Demarcation".equalsIgnoreCase(mappedFee.getName().trim()))
{%>
	<jsp:include page="/html/calculator/SurveyandDemarcation.jsp"/>
<%} 
else if ("Application Fees for Government Land".equalsIgnoreCase(mappedFee.getName().trim()))
{
	System.out.println("doing ID >>>555555555" + mappedFee.getListTypeId());
%>
	<jsp:include page="/html/calculator/application_fees_for_govt_land.jsp"/>
<%} 
else
{
System.out.println("Fee not Found --->>>" + mappedFee.toString() );	
} 
%>



